<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>小米商城左侧导航</title>
  </head>
  <style>
    body {
      background-image: linear-gradient(to right, #fdb787, #c6ffdd);
    }
    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    a {
      text-decoration: none;
    }
    .menu {
      width: 300px;
      background-color: rgba(255, 255, 255, 0.6);
      margin: 50px auto 0;
    }
    .menu ul {
      padding: 20px 0;
    }
    .menu ul li {
      height: 42px;
      font-size: 16px;
      line-height: 42px;
    }
    .menu ul li a {
      display: block;
      text-indent: 2em;
      position: relative;
      color: black;
    }
    .menu ul li a:hover {
      background-color: #ff6700;
      color: #fff;
    }
    .arrow-right {
      position: absolute;
      top: 15px;
      right: 28px;
      width: 8px;
      height: 8px;
      background-color: transparent;
      border-color: #ddd;
      border-style: solid;
      border-width: 2px 2px 0 0;
      transform: rotate(45deg);
    }
  </style>
  <body>
    <div class="menu">
      <ul>
        <li>
          <a href="">手机<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">电视<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">家电<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">笔记本 平板<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">出行 穿戴<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">耳机 音箱<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">健康 儿童<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">生活 箱包<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">智能 路由器<div class="arrow-right"></div></a>
        </li>
        <li>
          <a href="">电源 配件<div class="arrow-right"></div></a>
        </li>
      </ul>
    </div>
  </body>
</html>
